/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.sequence.sedi.model.command;

import org.eclipse.uml2.uml.ExecutionSpecification;
import org.eclipse.uml2.uml.Interaction;
import org.eclipse.uml2.uml.InteractionFragment;
import org.eclipse.uml2.uml.Lifeline;
import org.eclipse.uml2.uml.StateInvariant;
import org.eclipse.uml2.uml.UMLFactory;


public class CreateActionExecutionSpecificationCommand extends CreateExecutionSpecificationCommand {

	/**
	 * Main constructor
	 * @param coveredLifeline the {@link Lifeline} covered by the new {@link StateInvariant}
	 * @param namespace the {@link Interaction} where the {@link StateInvariant} is created
	 */
	public CreateActionExecutionSpecificationCommand(Lifeline coveredLifeline, InteractionFragment namespace) {
		super(coveredLifeline, namespace);
	}
	
	protected ExecutionSpecification CreateExecutionSpecificationElement() {
		return UMLFactory.eINSTANCE.createActionExecutionSpecification();
	}
}
